package com.vhall.component.plugin.common.support;

/**
 * @author longzhen.gong
 * @date 2021/6/21 10:53
 */
public class TokenThreadLocal {

    private static ThreadLocal<Token> thLocal = new ThreadLocal<>();

    public static void setToken(Token token) {
        thLocal.set(token);
    }

    public static Token getToken() {
        return thLocal.get();
    }

    public static void remove() {
        thLocal.remove();
    }

}
